package com.cloudbroker.bcs.platform.dav.bizapi.constants.type;

public enum LoginErrType {
    
    CODE_WRONG(1, "验证码错误"),
    
    CLIENT_ERR(2, "帐号不存在"),
    
    PWD_ERR(3, "用户名或密码错误"),
    
    STATUS_ERR(4, "帐号状态异常"),
    
    SUCCESS(5, "登录成功")
    
    ;
    
    private final int val;
    
    private final String description;
    
    private String toString;
    
    private LoginErrType(int val, String description) {
        this.val = val;
        this.description = description;
    }
    
    public int getVal() {
        return val;
    }
    
    public String getDescription() {
        return description;
    }
    
    @Override
    public String toString() {
        if (null == toString) {
            toString = new StringBuilder().append("StaffPwdKind[").append(val).append(':').append(description)
                    .append(']').toString();
        }
        return toString;
    }
    
}
